﻿@model BlackBox.Game
@{
    ViewBag.Title = "AddGame";
}

<div>
<h2>AddGame</h2>
@using (Html.BeginForm("AddGameCompleted", "Game", FormMethod.Post, new { enctype = "multipart/form-data" }))
{
    <p>Name of the Game</p>@Html.EditorFor(model => model.name)
    <p>Minimum Players required for game</p>@Html.EditorFor(model => model.minplayers)
    <p>Maximum players in game</p>@Html.EditorFor(model => model.maxplayers)
    <p>Game Category</p>@Html.DropDownListFor(model => model.type,ViewData["Type"] as List<SelectListItem>)
    <p>Link to game image</p>@Html.EditorFor(model => model.image) 
    <p>
    <input type="submit" value="Submit" />
    </p>
}
</div>